<html>
    <head>
        <title>Welcome to Grails</title>
		<meta name="layout" content="main" />

        <!-- Combo-handled YUI CSS files: -->
      <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.7.0/build/datatable/assets/skins/sam/datatable.css&2.7.0/build/treeview/assets/skins/sam/treeview.css">
      <!-- Combo-handled YUI JS files: -->
      <script type="text/javascript" src="http://yui.yahooapis.com/combo?2.7.0/build/yahoo-dom-event/yahoo-dom-event.js&2.7.0/build/element/element-min.js&2.7.0/build/datasource/datasource-min.js&2.7.0/build/datatable/datatable-min.js&2.7.0/build/treeview/treeview-min.js"></script>

    </head>
    <body>
        <h1 style="margin-left:20px;">Welcome to Grails TRAIN</h1>
    <br>
    <p style="margin-left:20px;width:80%">This is a small demo application to explore RAI with Grails. </p>

    <p style="margin-left:20px;width:80%">GrailsRAIN: Grails Tips & Resources for Ajax Integration with Newbies</p>
        <div class="dialog" style="margin-left:20px;width:60%;">
            <ul>
              <g:each var="c" in="${grailsApplication.controllerClasses}">
                    <li class="controller"><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li>
              </g:each>
            </ul>
        </div>

    <br>

    <div id="treeDiv1">
        <ul>
            <li><a href="corpus/show/1" title="Show second corpus">First-Test-Corpus</a>
                <ul>
                    <li><a href="document/1" title="Show first doc">Angela's Ashes</a></li>
                    <li><a target="_new" href="document/2" title="Show second doc">Beauty and the Beast</a></li>
                </ul>
            </li>
            <li><a target="_new" href="corpus/show/2" title="Show second corpus">Second-Test-Corpus</a>
                <ul>
                    <li>Doc 1</li>
                    <li>Doc 2</li>
                </ul>
            </li>
        </ul>
    </div>


        <script type="text/javascript">
            var tree = new YAHOO.widget.TreeView("treeDiv1");
            tree.render();
        </script>
    
    </body>
</html>